''' Init DB'''
from db_interface import *
foo = dbApi('sqlite3')
db = foo.open()
db.initDB()
db.rebuildDB()




''' Rebuild DB '''
from db_interface import *
foo = dbApi('sqlite3')
db = foo.open()
db.rebuildDB()


''' Query DB '''
from db_interface import *
foo = dbApi('sqlite3')
db = foo.open()
sql = "select * from users"
db.query(sql)


'''Get userData'''
from model import userControl
foo = userControl()
foo.checkLogin('kfox', 'thispass')



'''Get All userData'''
from model import userControl
foo = userControl()
foo.getUsers()

'''Test User login control '''
from model import userControl
userCtrlImp = userControl()
login = 'kfox'
password = 'kevin'
user = userCtrlImp.checkLogin(login, password)